
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Bowling.Test;

namespace Bowling
{
    public class BowlingGame
    {
        private RollRecord _rollRecord;

        public void Roll(params int[] rolls)
        {
            _rollRecord = new RollRecord(rolls);
            // need to make the scorer return an updated rollRecord ( immutable? )
            var scorer = new Scorer(_rollRecord);
            scorer.UpdateFrameScores();
        }

        public override string ToString()
        {
            var scoreSheet = new ScoreSheet(_rollRecord.Frames);
            return scoreSheet.ToString();
        }
	}

	
}